ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 9 - No. 48)

In a bubble sort algorithm applied to a list of temperatures, what does `Temperature[Index] > Temperature[Index + 1]` represent?
Comparing if the first temperature is larger than the second temperature.
Comparing the temperature at the current index with the next one.
Swapping the temperatures.
The end of the loop.

คำอธิบาย

This comparison is made to see if two adjacent temperatures are in the correct order.

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc